package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

import java.util.Objects;

public class CrossUserBaseInfo extends DataObject {
    private long userId;
    private UserBaseInfo userBaseInfo;
    private long lastUpdateTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (!Objects.equals(this.userId, userId)) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public UserBaseInfo getUserBaseInfo() {
        return userBaseInfo;
    }

    public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
        if (!Objects.equals(this.userBaseInfo, userBaseInfo)) {
            this.userBaseInfo = userBaseInfo;
            setUpdateOption();
        }
    }

    public long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(long lastUpdateTime) {
        if (!Objects.equals(this.lastUpdateTime, lastUpdateTime)) {
            this.lastUpdateTime = lastUpdateTime;
            setUpdateOption();
        }
    }
}
